package com.htgd.gardenexpo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 社交话题
 * </p>
 *
 * @author author
 * @since 2024-10-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ge_con_social_topics")
@ApiModel(value="GeConSocialTopics对象", description="社交话题")
public class GeConSocialTopics implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @NotBlank(message = "话题名称不能为空")
    @ApiModelProperty(value = "话题名称")
    @TableField(value = "`name`")
    private String name;

    @NotBlank(message = "类型不能为空")
    @ApiModelProperty(value = "类型('1':赛事，'2':普通)")
    private String type;

    @ApiModelProperty(value = "状态('1':开启，'2':关闭)")
    @TableField(value = "`status`")
    private String status;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;


}
